<template>
	<view>
		<!-- 添加回答 -->
		<view class="answer_box">
			<p>添加回答</p>
			<p @click="release" class="release_btn">发布</p>
		</view>
		 <u--input
		    placeholder="输入回答内容…"
		    border="none"
		    v-model="value"
		  ></u--input>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: ''
			}
		},
		methods: {
			
					
					release() {
						console.log(this.value)
						let a = {
							name: '张三',
							thumb: '200',
							chat: '190',
							// date:'1121',
							content: this.value,
						}
						this.$api.lfyAddAnswer(a).then(res => {
							this.$api.lfyanswer().then(res => {
								this.answer = res.data
								
							})
						
						})
						
					},
		}
	}
</script>

<style lang="scss">
*{
	margin: 0;
	padding: 0;
}
.answer_box{
	display: flex;
	justify-content: space-between;
	height: 60upx;
	line-height: 60upx;
	padding: 20upx 0;
	margin: 0 30upx;
	border-bottom: 2upx solid #cbcbcb;
	.release_btn{
		background-color: #8fc31f;
		color: #fff;
		padding: 0 50upx;
		border-radius: 10upx;
		// height: 50upx;
	}
}
/deep/ .u-input{
	// height: 60upx;
	// line-height: 60upx;
	margin: 0 30upx;
}
</style>
